@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 加载技能条动画 */
.bar[data-level="90"] {
    width: 90%;
}

.bar[data-level="85"] {
    width: 85%;
}

.bar[data-level="80"] {
    width: 80%;
}

.bar[data-level="75"] {
    width: 75%;
}

/* 悬停动画 */
.project-card:hover {
    animation: pulse 0.5s ease;
}

.interest-item:hover {
    animation: pulse 0.5s ease;
}
/* 增强粒子动画效果 */
@keyframes particle-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* 为粒子添加动画 */
canvas[data-generated] {
    animation: particle-pulse 3s ease infinite;
}

/* 连接线动画 */
.particles-js-canvas-el {
    transition: all 0.3s ease;
}